package com.xbongbong.paas.pojo;

import com.alibaba.fastjson.JSONArray;
import com.google.gson.JsonArray;
import com.xbongbong.paas.domain.entity.PaasFormExplainEntity;
import com.xbongbong.paas.domain.entity.PaasMenuEntity;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

/**
 * @author 吴峰
 * @date 2022/08/03 14:54
 */
@Getter
@Setter
@ToString
public class ExportExplainPojo implements Serializable {


    private static final long serialVersionUID = -7431470870763026752L;
    private PaasFormExplainEntity paasFormExplainEntity;

    private  PaasMenuEntity paasMenuEntity;

    private List<FieldAttrEntityForImport> fieldAttr;


    private JSONArray dataExplain;


    public ExportExplainPojo() {

        fieldAttr = new ArrayList<>();
    }

    public ExportExplainPojo(PaasFormExplainEntity paasFormExplainEntity, PaasMenuEntity paasMenuEntity, List<FieldAttrEntityForImport> fieldAttr) {
        this.paasFormExplainEntity = paasFormExplainEntity;
        this.paasMenuEntity = paasMenuEntity;
        this.fieldAttr = fieldAttr;
    }

    public ExportExplainPojo(List<FieldAttrEntityForImport> fieldAttr, JSONArray dataExplain) {
        this.fieldAttr = fieldAttr;
        this.dataExplain = dataExplain;
    }
}
